#include <iostream>
#include <sys/time.h>
#include <sys/resource.h>
#include <signal.h>
#include <unistd.h>
#include <jsoncpp/json/json.h>

using namespace std;

void handler(int signo)
{
    cout << "signo : " << signo << std::endl;
    exit(1);
}

int main()
{
    for(int i = 1; i <= 31; ++i)
        signal(i, handler);
    // struct rlimit rl;
    // rl.rlim_cur = 1;
    // rl.rlim_max = RLIM_INFINITY;
    // setrlimit(RLIMIT_CPU, &rl);

    // while(1);

    // struct rlimit rl;
    // rl.rlim_cur = 50 * 1024 * 1024;
    // rl.rlim_max = RLIM_INFINITY;
    // setrlimit(RLIMIT_AS, &rl);

    // while(1)
    //     int* p = new int[1024 * 1024 * 10];
    execl("./temp/baichen", "./temp/baichen", nullptr);

    
    return 0;
}